<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://iosr11.ui.tags/studentInfo" prefix="g" %>

<h:form rendered="#{currentUser.teacher}">
	<g:studentInfo student="#{studentBean.student}" />
	
	<h:panelGrid columns="3" columnClasses="labelText, normalText">

		<h:outputText value="Nowa ocena" />
		<h:inputText value="#{studentBean.newMark}" id="ocena" required="true">
			<f:validator validatorId="iosr11.ui.validators.Grade" />
		</h:inputText>
		<h:message for="ocena" styleClass="errorMsg" />
		
	</h:panelGrid>
	<h:commandButton value="Zapisz ocene" action="#{studentBean.saveMark}" />
</h:form>